<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
</head>
<body>
    <button id="btn">导入</button>
    <script type="module">
        import xxx,{a as compute as com} from "./add.js"
        import {b,compute} from "./sub.js"
        console.log(aaa)
        let result=com()
        console.log(result)
        console.log("add.js的默认到处:"+xxx)
        let btn=document.getElementById("btn")
        btn,addEventListener("click",()=>{
            console.log(compute())
        })
    </script>
</body>
</html>